package org.jeecg.modules.demo.weixinopenaccount.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.weixinopenaccount.entity.WeixinOpenAccount;
import org.jeecg.modules.demo.weixinopenaccount.mapper.WeixinOpenAccountMapper;
import org.jeecg.modules.demo.weixinopenaccount.service.IWeixinOpenAccountService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Description: 授权账号信息
 * @Author: jeecg-boot
 * @Date: 2022-07-05
 * @Version: V1.0
 */
@Service
public class WeixinOpenAccountServiceImpl extends ServiceImpl<WeixinOpenAccountMapper, WeixinOpenAccount> implements IWeixinOpenAccountService {
    @Resource
    WeixinOpenAccountMapper weixinOpenAccountMapper;

    /**
     * 根据appid查询授权用户信息
     *
     * @param appid
     * @return
     */
    @Override
    public WeixinOpenAccount getByAppid(String appid) {
        return weixinOpenAccountMapper.getByAppid(appid);
    }
}
